package vn.net.click.dao;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.dao.DataAccessException;
import org.springframework.jdbc.core.ResultSetExtractor;
import org.springframework.jdbc.core.RowMapper;

import vn.net.click.model.User;

public class UserMapper implements RowMapper<User>{

	@Override
	public User mapRow(ResultSet rs, int row) throws SQLException {

		User user = new User();
		user.setTenDangNhap(rs.getString("cf_tendangnhap"));
		user.setPassWord(rs.getString("cf_password"));
		user.setRole(rs.getString("cf_role"));
		return user;
	}

	

}
